package com.youlu.campus.service.activity;

import com.youlu.campus.entity.ActivityAutoTask;
import com.youlu.campus.entity.VO.req.ActivityAutoTaskQueryVO;
import org.springframework.data.domain.Page;

public interface ActivityAutoTaskService {

    ActivityAutoTask create(ActivityAutoTask req);

    boolean update(ActivityAutoTask req);

    ActivityAutoTask find(String activityId, String type);

    ActivityAutoTask findOne(String id);

    boolean run(String id);

    Page<ActivityAutoTask> list(ActivityAutoTaskQueryVO req);

    boolean delete(String id);

    /**
     * 撤销任务动作
     *
     * @param id
     * @return
     */
    boolean withdraw(String id);

}
